<%= form_for(@product) do |f| %>
  <% if @product.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@product.errors.count, "error") %> prohibited this product from being saved:</h2>

      <ul>
      <% @product.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :title %><br />
    <%= f.text_field :title %>
  </div>
  <div class="field">
    <%= f.label :description %><br />
    <%= f.text_area :description %>
  </div>
  <div class="field">
    <%= f.label :jumlah_kamar_tidur %><br />
    <%= f.text_field :bedroom %>
  </div>
  <div class="field">
    <%= f.label :jumlah_kamar_mandi %><br />
    <%= f.text_field :bathroom %>
  </div>
   <div class="field">
    <%= f.label :listrik %><br />
    <%= f.text_field :voltage %>
  </div>
  <div class="field">
    <%= f.label :panjang %><br />
    <%= f.text_field :long %>
  </div>
  <div class="field">
    <%= f.label :lebar %><br />
    <%= f.text_field :width %>
  </div>
  <div class="field">
    <%= f.label :jumlah_ac %><br />
    <%= f.text_field :ac %>
  </div>
   <div class="field">
    <%= f.label :kapasitas_garasi %><br />
    <%= f.text_field :car %>
  </div>
  <div class="field">
    <%= f.label :front_image %><br />
    <%= f.text_field :front_image %>
  </div>
  <div class="field">
    <%= f.label :left_image %><br />
    <%= f.text_field :left_image %>
  </div>
  <div class="field">
    <%= f.label :right_image %><br />
    <%= f.text_field :right_image %>
  </div>
  <div class="field">
    <%= f.label :inside_image %><br />
    <%= f.text_field :inside_image %>
  </div>
  <div class="field">
    <%= f.label :price %><br />
    <%= f.text_field :price %>
  </div>
  <div class="field">
    <%= f.label :latitude %><br />
    <%= f.text_field :latitude %>
  </div>
  <div class="field">
    <%= f.label :longitude %><br />
    <%= f.text_field :longitude %>
  </div>
  <div class="field">
    <%= f.label :contact %><br />
    <%= f.text_field :contact %>
  </div>
  <div class="field">
    <%= f.label :phone %><br />
    <%= f.text_field :phone %>
  </div>
  <div class="field">
    <%= f.label :mobile %><br />
    <%= f.text_field :mobile %>
  </div>
  <div class="field">
    <%= f.label :email %><br />
    <%= f.text_area :email %>
  </div>
  <div class="field">
    <%= f.label :yahoo %><br />
    <%= f.text_area :yahoo %>
  </div>
  <div class="field">
    <%= f.label :skype %><br />
    <%= f.text_area :skype %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
